<?php

use Phinx\Migration\AbstractMigration;

class ExtendFrameworkAgreementStatusEnumExpiredInTenantTable extends AbstractMigration
{
    public function up()
    {
        $this->table("tenant")
            ->changeColumn('framework_agreement_status', 'enum', [
                'values' => 'to_be_submitted,wait_for_sign,signed,expired',
                'default' => 'to_be_submitted',
                'comment' => 'FDD框架协议签订状态'
            ])
            ->save();
    }

    public function down()
    {
        $this->table("tenant")
            ->changeColumn('framework_agreement_status', 'enum', [
                'values' => 'to_be_submitted,wait_for_sign,signed',
                'default' => 'to_be_submitted',
                'comment' => 'FDD框架协议签订状态'
            ])
            ->save();
    }
}
